#-------------------------------------------------------------------
# This file is part of the CMake build system for ogre-7z 
# (7zip (LZMA) archives support for Ogre 3D)
#-------------------------------------------------------------------

# install dependencies only for windows and macs
if (NOT APPLE AND NOT WIN32)
	return ()
endif ()

# customize
option (SETUP_COPY_DEPENDENCIES "Copy dependency libs to the build directory" ${SETUP_OGRE_7ZIP_BUILD_DEMO})


#  macroses
include (Macros)

if (SETUP_COPY_DEPENDENCIES AND SETUP_OGRE_BUILD)
	message (STATUS "Coping libraries...")
	# copy OgreMain
	copy_dep (OgreMain)
	
	# copy render systems
	copy_ogre_component (RenderSystem_Direct3D9)
	copy_ogre_component (RenderSystem_Direct3D10)
	copy_ogre_component (RenderSystem_Direct3D11)
	copy_ogre_component (RenderSystem_GL)
	copy_ogre_component (RenderSystem_GLES)
endif (SETUP_COPY_DEPENDENCIES AND SETUP_OGRE_BUILD)
